package com.jiangmiao.babaisyou.domain;

import com.jiangmiao.babaisyou.util.GameUtil;
import com.jiangmiao.babaisyou.util.Location;

import java.awt.*;

public class People extends Block{
    private String name;
    private Image image;

    public People(int x, int y, String name) {
        super(x, y);
        this.name = name;
        this.image = GameUtil.loadBufferedImage(name);
    }

    public People(Location location, String name) {
        super(location.getX() * 24, location.getY() * 24);
        this.name = name;
        this.image = GameUtil.loadBufferedImage(name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }
}
